export default {
  getUserInfo() {
    return localStorage.userInfo ? JSON.parse(localStorage.userInfo) : {}
  },

  userInfo() {
    return this.getUserInfo()
  },

  isLogin() {
    return !!this.getUserInfo().userId
  },
}
